﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="myProgress.aspx.vb" Inherits="WeightLossProject.myProgress" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <h2 class=custom-header>My Weight Loss Progress History!</h2><asp:DetailsView ID="dvWeightlossProgress" 
            runat="server" AllowPaging="True" AutoGenerateRows="False" BackColor="White" 
            BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
            DataSourceID="dsProgress" ForeColor="Black" GridLines="Horizontal" 
            Height="50px" Width="660px" DataKeyNames="ID">
            <EditRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
            <Fields>
                <asp:BoundField DataField="ID" HeaderText="Progress ID" SortExpression="ID" 
                    InsertVisible="False" ReadOnly="True" />
                <asp:BoundField DataField="UserName" HeaderText="Added By" 
                    SortExpression="UserName" />
                <asp:BoundField DataField="Title" HeaderText="Progress Title" 
                    SortExpression="Title" />
                <asp:ImageField DataImageUrlField="Picture" HeaderText="Progress Picture">
                    <ControlStyle Width="520px" />
                </asp:ImageField>
                <asp:BoundField DataField="Description" HeaderText="Description" 
                    SortExpression="Description" />
                <asp:BoundField DataField="Weight" HeaderText="Weight" 
                    SortExpression="Weight" />
                <asp:BoundField DataField="EntryDate" HeaderText="Entry Date" 
                    SortExpression="EntryDate" />
                <asp:HyperLinkField DataNavigateUrlFields="ID" 
                    DataNavigateUrlFormatString="editProgress.aspx?PID={0}" DataTextField="Title" 
                    HeaderText="Edit Post">
                <ControlStyle Font-Bold="True" ForeColor="#009900" />
                </asp:HyperLinkField>
            </Fields>
            <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
            <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
        </asp:DetailsView>
    <p>
        <asp:SqlDataSource ID="dsProgress" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
            CancelSelectOnNullParameter="False">
        </asp:SqlDataSource>
    </p>
</asp:Content>
